#!/bin/bash
# Zaitan Module - Multi Install
# Zaitan Team <http://code.google.com/p/zaitan/>
# Aplicativo para instalar vários programas apt-get



##################################################################




case $1 in


"inkscape" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Designer'
RMOD_NAME='Inkscape'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.0.18'
RMOD_DESCRIPTION='Installs Inkscape'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Inkscape
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install inkscape



echo $RMOD_NAME Finished...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################



"gftp" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Net'
RMOD_NAME='Gftp'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.0.18'
RMOD_DESCRIPTION='Installs Gftp'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Gobby
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install gftp



echo $RMOD_NAME Finished...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################


"gobby" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Developed'
RMOD_NAME='Gobby'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='4.1'
RMOD_DESCRIPTION='Installs Gobby'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Gobby
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall
apt-get update
apt-get -y install gobby



echo $RMOD_NAME Finished...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################


"kate" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Developed'
RMOD_NAME='Kate'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.5.6'
RMOD_DESCRIPTION='Installs Kate'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Kate
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall
apt-get update
apt-get -y install kate
chown -R $USER.$USER /home/$USER/.kde/*
chmod 777 /home/$USER/.kde/*


echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################




"mysql" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Developed'
RMOD_NAME='mysql'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='5.0'
RMOD_DESCRIPTION='Installs Mysql'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Mysql
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install mysql-server
echo "A senha do Mysql vai ser 1234"
sleep 1
mysqladmin -u root password 1234
apt-get -y install mysql-admin
apt-get -y install mysql-query-browser



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################




"aptoncd" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Sistema'
RMOD_NAME='APTonCD'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.1'
RMOD_DESCRIPTION='Installs APTonCD'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install APTonCD
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install aptoncd



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################



"burncd" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Multimidia'
RMOD_NAME='Gnomeker'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.6'
RMOD_DESCRIPTION='Installs Gnomeker'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Gnomeker
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install gnomeker



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################




"amule" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='P2P'
RMOD_NAME='Amule'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.1.3'
RMOD_DESCRIPTION='Installs Amule'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Amule
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install amule



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################

     


"audacity" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Multimidia'
RMOD_NAME='Audacity'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.2.6'
RMOD_DESCRIPTION='Installs Audacity'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Amule
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install audacity



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################



"blogtk" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Net'
RMOD_NAME='Blogtk'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.1'
RMOD_DESCRIPTION='Installs Blogtk'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Blogtk
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install blogtk



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################




"qdvdauthor" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Multimidia'
RMOD_NAME='Qdvdauthor'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.1.2'
RMOD_DESCRIPTION='Installs Qdvdauthor'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Qdvdauthor
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install qdvdauthor



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################



"avidemux" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Multimidia'
RMOD_NAME='Avidemux'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.3.0'
RMOD_DESCRIPTION='Installs Avidemux'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Avidemux
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install avidemux



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################


"cinelerra" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Multimidia'
RMOD_NAME='Cinelerra'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1'
RMOD_DESCRIPTION='Installs Cinelerra'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Cinelerra
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

echo 'deb http://www.kiberpipa.org/~muzzol/cinelerra/feisty-i386/ ./' | tee -a /etc/apt/sources.list

apt-get update
apt-get -y install cinelerra



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################






"reconstructor" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Developed'
RMOD_NAME='Reconstructor'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.6'
RMOD_DESCRIPTION='Installs Reconstructor'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Reconstructor
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

cd /usr/share/zaitan
wget -c http://zaitan.googlecode.com/svn/downloads/reconstructor-2.6_all.deb
apt-get update
dpkg -i reconstructor-2.6_all.deb
apt-get -f install

echo $RMOD_NAME Finished...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################
	
	
"seahorse" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Encryption'
RMOD_NAME='Seahorse'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.0'
RMOD_DESCRIPTION='Installs Seahorse'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Seahorse
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install seahorse



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################

	
"liferea" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='RSS'
RMOD_NAME='Liferea'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.2.10'
RMOD_DESCRIPTION='Installs Liferea'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Liferea
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install liferea



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################


"tmw" )
RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Games'
RMOD_NAME='The Mana World'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='0.0.23'
RMOD_DESCRIPTION='Installs The Mana World'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install The Mana World
echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

apt-get update
apt-get -y install tmw



echo $RMOD_NAME Finished...
##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##
exit 0

	;;##################################################################




	*) zenity --info --text="Parâmetro Errado !" 
     esac


